// 数字枚举
var Role;
(function (Role) {
    Role[Role["ADMIN"] = 0] = "ADMIN";
    Role[Role["STAFF"] = 12] = "STAFF";
    Role[Role["GUEST"] = 13] = "GUEST";
})(Role || (Role = {}));
// 字符串枚举
var Message;
(function (Message) {
    Message[Message["SUCCESS"] = 0] = "SUCCESS";
    Message["ERROR"] = "\u9519\u8BEF";
    Message["WARNING"] = "\u8B66\u544A";
})(Message || (Message = {}));
console.log(Message.SUCCESS);
console.log(Message.ERROR);
console.log(Message.WARNING);
console.log(Role.ADMIN);
console.log(Role.STAFF);
console.log(Role.GUEST);
console.log(Role[0]);
console.log(Role[1]);
console.log(Role[2]);
// Role.GUEST = 18; // 无法为“GUEST”赋值，因为它是只读属性
// const my_num3 = 10;
// my_num3 = 20;
